home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr35 / sbbsvol2.zip / XTRN.ZIP / XSDKVARS.C < prev    next >
C/C++ Source or Header  |  1993-06-02  |  3KB  |  79 lines

  1. /* XSDKVARS.C */
  2.  
  3. #include <time.h>
  4. #include "xsdkdefs.h"
  5.  
  6. #ifndef GLOBAL
  7. #define GLOBAL
  8. #endif
  9.  
  10. /*******************************/
  11. /* Global Variable Definitions */
  12. /*******************************/
  13. GLOBAL char     lncntr;             /* Line counter */
  14. GLOBAL char     tos;                /* Top of screen */
  15. GLOBAL char     curatr;
  16. GLOBAL char     mnehigh,            /* Colors for mnemonics */
  17.                 mnelow;
  18. GLOBAL uchar    sys_nodes,            /* Number of nodes on system */
  19.                 node_num;            /* Current node number */
  20. GLOBAL char     sys_name[41],        /* System name */
  21.                 sys_op[41],         /* System operator name */
  22.                 sys_guru[41];        /* System guru name */
  23. GLOBAL uint     timeleft;            /* Time left in seconds */
  24. GLOBAL char     ctrl_dir[128],        /* SBBS dirs */
  25.                 data_dir[128],
  26.                 node_dir[45];
  27. GLOBAL uint     user_number;        /* User's number */
  28. GLOBAL char     user_name[45],        /* User's name/alias */
  29.                 user_misc,            /* User's misc settings */
  30.                 user_rows,            /* User's rows per screen */
  31.                 user_ml,            /* User's main level */
  32.                 user_tl,            /* User's transfer level */
  33.                 user_mf[27],        /* User's main flags */
  34.                 user_tf[27],        /* User's transfer flags */
  35.                 user_exempt[27],    /* User's exemptions */
  36.                 user_rest[27],        /* User's restrictions */
  37.                 user_sex,            /* User's sex */
  38.                 user_birth[9],        /* User's birthday */
  39.                 user_phone[13];     /* User's phone number */
  40. GLOBAL ulong    user_cdt;            /* User's credits */
  41. GLOBAL time_t    user_expire;        /* User's expiration date */
  42.  
  43.                                     /* COM port registers: */
  44. GLOBAL uint     com_base,            /* COM base address */
  45.                 com_irq,            /* irq line number     */
  46.                 com_rate;              /* DTE rate in bps     */
  47. GLOBAL char      com_port;            /* Number of COM port  */
  48.  
  49.                                     /* Modem command strings */
  50. GLOBAL char     mdm_init[41],        /* Initialization */
  51.                 mdm_spec[41],        /* Special Initialization */
  52.                 mdm_term[41],        /* Terminal Initialization String */
  53.                 mdm_dial[41],         /* Dial    */
  54.                 mdm_offh[41],        /* Off hook    */
  55.                 mdm_answ[41],         /* Answer */
  56.                 mdm_misc;           /* Misc bits used for flags */
  57.  
  58. GLOBAL time_t    starttime;            /* Start time-stamp */
  59. GLOBAL char     wordwrap[81];        /* Wordwrap buffer */
  60. GLOBAL uint     sec_warn,            /* Seconds till inactivity warning */
  61.                 sec_timeout;        /* Seconds till disconnect */
  62.  
  63. GLOBAL int        nodefile;            /* File descriptor for NODE.DAB */
  64.  
  65. GLOBAL char     slbuf[SAVE_LINES][LINE_BUFSIZE+1]; /* Saved for redisplay */
  66. GLOBAL char     slatr[SAVE_LINES];    /* Starting attribute of each line */
  67. GLOBAL char     slcnt;            /* Number of lines currently saved */
  68. GLOBAL char     lbuf[LINE_BUFSIZE];/* Temp storage for each line output */
  69. GLOBAL int        lbuflen;        /* Number of characters in line buffer */
  70. GLOBAL char     latr;           /* Starting attribute of line buffer */
  71. GLOBAL uint     inDV;            /* DESQview version if running under DV */
  72. GLOBAL int        keybuftop,keybufbot;    /* Keyboard input buffer pointers */
  73. GLOBAL char     keybuf[KEY_BUFSIZE];    /* Keyboard input buffer */
  74. GLOBAL uint far *msr;            /* Last modem status register contents */
  75. GLOBAL char     **xtrn;         /* List of external program names */
  76. GLOBAL uint     total_xtrns;    /* Total number of external programs */
  77. GLOBAL uchar    lastnodemsg;    /* Last node to send a message to */
  78. GLOBAL uchar    name_len;        /* Length of name field in NAME.DAT */
  79.